#include <userver/testsuite/http_allowed_urls_extra.hpp>

#include <userver/clients/http/client_core.hpp>
#include <userver/clients/http/component_core.hpp>
#include <userver/components/component.hpp>

USERVER_NAMESPACE_BEGIN

namespace testsuite {

void HttpAllowedUrlsExtra::RegisterHttpClient(std::shared_ptr<clients::http::ClientCore> http_client) {
    http_client_ = std::move(http_client);
}

void HttpAllowedUrlsExtra::SetAllowedUrlsExtra(std::vector<std::string>&& urls) {
    if (http_client_) http_client_->SetAllowedUrlsExtra(std::move(urls));
}

}  // namespace testsuite

USERVER_NAMESPACE_END
